package com.zxh.zhenxihuan.controller;

import com.zxh.zhenxihuan.entity.Classification;
import com.zxh.zhenxihuan.mapper.ClassificationMapper;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author:geQiang
 * @version:1.0
 * @date:2019/8/2
 * @description:com.zxh.zhenxihuan.controller
 */
@RestController
@CrossOrigin
public class ClassificationController {
        @Resource
        ClassificationMapper classificationMapper;

        @PostMapping("/findClassification")
        public  List<Classification> findClassification(){
            return classificationMapper.findClassification();
        }

}
